package com.rocpenghua.design.mediator;

/**
 * @author pengp
 * @date 2023年02月24日 15:15
 */
public abstract class Colleague {
    protected Mediator mediator;
    protected String name;

    public Colleague(String name) {
        this.name = name;
    }

    public void setMedium(Mediator mediator) {
        this.mediator = mediator;
    }

    public String getName() {
        return name;
    }

    public abstract void Send(String to, String ad);

    public abstract void receive(String from, String ad);
}
